package com.buddy.jni.demo07;

/**
 * 访问类中的static变量
 */
public class JNIStaticVariable {
    static {
        System.loadLibrary("jni_static_variable");
    }

    private native void modifyStaticVariable();

    // Static variables
    private static double number = 55.66;


    public static void main(String args[]) {
        JNIStaticVariable jniStaticVariable = new JNIStaticVariable();
        jniStaticVariable.modifyStaticVariable();
        System.out.println("In Java, the double is " + number);
    }
}
